package org.xhnews.ui;

import net.rim.device.api.browser.field2.BrowserField;
import net.rim.device.api.ui.container.VerticalFieldManager;

import org.xhnews.constant.Constant;
import org.xhnews.preferences.Preferences;
import org.xhnews.utils.DeviceUtil;

public class NewsOnlineField extends VerticalFieldManager {
	BrowserField myBrowserField = new BrowserField();
	public NewsOnlineField(){		
		add(myBrowserField);	
		initialize();
	}
	public void initialize()
	{
		String url=Preferences.server_address+Constant.URL_ONLINE_NEWS+"imei="+DeviceUtil.getPhoneIMEI();
		myBrowserField.requestContent(url);
	}
}